/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2021/12/7
 * \* Time: 22:18
 * \* To change this template use File | Settings | File Templates.
 * \* Description:泛型
 * \
 */
class MyArratList{
    private int[]elem;
    private int usedSize;

    public void MyLinkedList() {
        this.elem=new int[10];
    }
    public void add(int pos,int val){
        this.elem[usedSize]=val;
        usedSize++;
    }
    public int get(int pos){
        return this.elem[pos];
    }
}

public class TestDemo2 {
    //问题：写一个通用的顺序表
    public static void main(String[] args) {

    }
}
